package org.millioncall.yueyoga.admin.service;

import java.util.List;
import java.util.Map;

import org.millioncall.yueyoga.admin.model.DiscountStrategy;

/**
 * 折扣业务处理接口
 * 
 * @author zangjinyu
 * @version 1.0.0
 * @since 1.0.0 <br>
 *        Last modified by zangjinyu on 2014-3-15
 * 
 */
public interface DiscountService {
	/**
	 * 获取一个产品的折扣策略
	 * 
	 * @return
	 */
	public List<DiscountStrategy> findAllValidDiscountStrategiesByProductId(
			String productId, Map<String, Object> discountContext);

	/**
	 * 获取作用于总订单的所有折扣策略
	 * 
	 * @return
	 */
	public List<DiscountStrategy> findAllValidOrderDiscountStrategies(
			Map<String, Object> discountContext);

}
